package _16define.exercise;

public class Demo {
    public static void main(String[] args) {
        A a1 = new A("zs",12);
        A a2 = new A("ww",13);
        B b = new B("ll",14);
        Class c1=a1.getClass();
        Class c2=a2.getClass();
        Class b1=b.getClass();
        Class b2=b.getClass();
        System.out.println(c1==c2);
        System.out.println(b1==b2);
        System.out.println(c1==b1);

    }

}
class A{
    String name;
    int age;

    public A(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
class B{
    String name;
    int age;

    public B(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
